package com.hr.pong.service;

import org.springframework.stereotype.Service;
import reactor.core.publisher.Mono;

@Service
public class PongService {

  private final RateLimitedService rateLimitedService;


  public PongService(RateLimitedService rateLimitedService) {
    this.rateLimitedService = rateLimitedService;
  }

  public Mono<String> pong() {
    return Mono.just(rateLimitedService.handleRequestTwo());
  }


}
